package com.bsoft.gol.hcs.enumcase;

public enum DiseaseCollectConditionEnum {

    DEPTMENT("1", "科室"),
    DIAGNOSIS("2", "关联诊断"),
    OPERATE("3", "关联手术"),
    INDEX("4", "关联指标"),
    OPERATIVE("5", "关联操作"),
    DRUG("6", "关联用药");

    private final String type;

    private final String text;

    DiseaseCollectConditionEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public static DiseaseCollectConditionEnum getEnumByKey(String type) {
        for (DiseaseCollectConditionEnum temp : DiseaseCollectConditionEnum.values()) {
            if (temp.getType().equals(type)) {
                return temp;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public String getText() {
        return text;
    }
}
